package meterMonitor.vo;

/**
 * Created by Administrator on 2019/1/19 0019.
 * 该类封装超标水表情况
 *
 */
public class SuperMeter{
    private String areaId;

    private Long meterCode;

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public Long getMeterCode() {
        return meterCode;
    }

    public void setMeterCode(Long meterCode) {
        this.meterCode = meterCode;
    }

    //通讯号
    private String signalNo;
    //设备名称
    private String deviceName;
    //水表名称
    private String anotherName;
    //超水量
    private double superWater;
    //使用量
    private Double intervalQuantity;
    //间隔时间(秒)
    private Long intervalSec;
    //标准值
    private Double standard;
    //超标率        超标率=超出量/标准量
    private String superRate;

    public String getAnotherName() {
        return anotherName;
    }

    public void setAnotherName(String anotherName) {
        this.anotherName = anotherName;
    }

    public Double getStandard() {
        return standard;
    }

    public void setStandard(Double standard) {
        this.standard = standard;
    }

    public Double getIntervalQuantity() {
        return intervalQuantity;
    }

    public void setIntervalQuantity(Double intervalQuantity) {
        this.intervalQuantity = intervalQuantity;
    }

    public Long getIntervalSec() {
        return intervalSec==null?0:intervalSec;
    }

    public void setIntervalSec(Long intervalSec) {
        this.intervalSec = intervalSec;
    }

    public String getSignalNo() {
        return signalNo;
    }

    public void setSignalNo(String signalNo) {
        this.signalNo = signalNo;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public double getSuperWater() {
        return superWater;
    }

    public void setSuperWater(double superWater) {
        this.superWater = superWater;
    }

    public String getSuperRate() {
        return superRate;
    }

    public void setSuperRate(String superRate) {
        this.superRate = superRate;
    }

//    @Override
//    public int compareTo(Object superMeter) {
//        return this.anotherName.compareTo(((SuperMeter)superMeter).getAnotherName());
//    }

    @Override
    public String toString() {
        return "SuperMeter{" +
                "signalNo='" + signalNo + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", anotherName='" + anotherName + '\'' +
                ", superWater=" + superWater +
                ", intervalQuantity=" + intervalQuantity +
                ", intervalSec=" + intervalSec +
                ", standard=" + standard +
                ", superRate='" + superRate + '\'' +
                '}';
    }
}
